package com.weishi.project.training.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.weishi.project.training.domain.HeartRate;

import java.util.List;

/**
 * 心率Service接口
 */
public interface IHeartRateService extends IService<HeartRate> {

    /**
     * 查询心率列表
     */
    List<HeartRate> selectHeartRateList(HeartRate heartRate);


    /**
     * 查询心率表平均心率
     */
    Integer getAverageHeartRate(Integer userId, Integer trainingDayId, Integer groupId);


    /**
     * 查询最后一个节点
     * @param sportsmanId
     * @param groupId
     * @param channel
     * @return
     */
    HeartRate qryLastNode(Integer sportsmanId, int groupId, Integer channel);
}